//
//  RMMMyHuLiEmpatyView.m
//  Romomo
//
//  Created by puman on 2017/1/4.
//  Copyright © 2017年 mazegong. All rights reserved.
//

#import "RMMMyHuLiEmpatyView.h"

@implementation RMMMyHuLiEmpatyView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, self.height - 200, kScreenWideth, kMaric)];
        label.textAlignment = NSTextAlignmentCenter;
        label.text = @"您还没有购买护理套餐";
        label.textColor = COLORFROMCODE(0xAEAEAE, 1);
        label.font = kFont(13);
        [self addSubview:label];
        
        _buyBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _buyBut.frame = CGRectMake(kScreenWideth / 2 - 60, label.bottom + 9, 120, 40);
        _buyBut.backgroundColor = kBasicColor;
        [_buyBut setTitle:@"去购买" forState:(UIControlStateNormal)];
        [_buyBut setTitleColor:kWhiteColor forState:(UIControlStateNormal)];
        _buyBut.titleLabel.font = kFont(16);
        _buyBut.layer.cornerRadius = kMaric;
        [self addSubview:_buyBut];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
